import request from '@/utils/request'

// 查询电子屏-医生列表
export function listDoctor(query) {
  return request({
      url: '/electronicScreen/doctor/list',
      method: 'get',
      params: query
  })
}

// 查询电子屏-医生详细
export function getDoctor(id) {
  return request({
      url: '/electronicScreen/doctor/' + id,
      method: 'get'
  })
}

// 新增电子屏-医生
export function addDoctor(data) {
  return request({
      url: '/electronicScreen/doctor',
      method: 'post',
      data: data
  })
}

// 修改电子屏-医生
export function updateDoctor(data) {
  return request({
      url: '/electronicScreen/doctor',
      method: 'put',
      data: data
  })
}

// 删除电子屏-医生
export function delDoctor(id) {
  return request({
      url: '/electronicScreen/doctor/' + id,
      method: 'delete'
  })
}

// 状态修改 
export function updateStatus(query) {
  return request({
    url: '/electronicScreen/doctor/updateStatus',
    method: 'get',
    params: query
  })
}